package com.yao.system.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "job")
public class Job {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField(value = "user_id")
    private Long userId;
    @TableField(value = "company_id")
    private Long companyId;
    @TableField(value = "user_name")
    private String userName;
    @TableField(value = "title")
    private String title;
    @TableField(value = "image")
    private String image;
    @TableField(value = "content")
    private String content;
    @TableField(value = "salary")
    private String salary;
    @TableField(value = "educational")
    private String educational;
    @TableField(value = "company")
    private String company;//之后要去掉的字段
    @TableField(value = "address")
    private String address;////之后要去掉的字段
    @TableField(value = "job_type")
    private String jobType;
    @TableField(value = "type")
    private Integer type;
    @TableField(value = "experience")
    private String experience;
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
